package com.lagou.edu.api.falback;

import com.lagou.edu.api.ResumeServiceApi;
import org.springframework.stereotype.Component;

/**
 * 简历微服务回调类 ：用于简历微服务不可用或者响应时间过长，发生熔断机制后回调，给予用户后者消费者错误信息
 * @author renpeiqian
 * @date 2021/7/15 15:59
 * @since
 */
@Component //注入ioc容器
public class ResumeServiceFallBack implements ResumeServiceApi {
    @Override
    public Integer check(Long userId) {
        return -6;
    }
}
